package com.hxl.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hxl.entity.CmfzGuru;
import com.hxl.mapper.CmfzGuruMapper;
import com.hxl.service.CmfzGuruService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * InnoDB free: 10240 kB 服务实现类
 * </p>
 *
 * @author hxl
 * @since 2020-08-18
 */
@Service
public class CmfzGuruServiceImpl extends ServiceImpl<CmfzGuruMapper, CmfzGuru> implements CmfzGuruService {
    @Autowired
    private CmfzGuruMapper cmfzGuruMapper;
    @Override
    public Page<CmfzGuru> selectGurus(Integer page,Integer limit) {
        Page<CmfzGuru> cmfzGuruPage = new Page<>(page,limit);

        Page<CmfzGuru> ppp = (Page<CmfzGuru>) cmfzGuruMapper.selectPage(cmfzGuruPage, null);

        return ppp;
    }

}
